<?
class Vakanz_Attributes extends Vakanz_CRM_Db_Table {
	protected $_name = 'crm_attribute';
	protected $_primary = 'attribute_autoid';

	protected $_rowClass = 'Vakanz_Attribute';


	public function fetchAll($select = null) {
		if (is_null($select)) {
			$select = $this->select();
		}
		if (is_a($select,'Zend_Db_Table_Select') ) {
			$select->where('attribute_status = ?', 10);
		}
		return parent::fetchAll($select);
	}
	
}